package com.gt.web.srv.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 商品列表
 * @TableName biz_goods
 */
@TableName(value ="biz_goods")
@Data
public class Goods extends BaseAuto {
    /**
     * 商品ID
     */
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Long goodsId;

    /**
     * 商户ID
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 商品名称
     */
    @TableField(value = "title")
    private String title;

    /**
     * 0:实物，1：卡券
     */
    @TableField(value = "exchange_type")
    private Integer exchangeType;

    /**
     * 券码ID
     */
    @TableField(value = "coupon_id")
    private Long couponId;

    /**
     * 兑换数量
     */
    @TableField(value = "quantity")
    private Integer quantity;

    /**
     * 类目ID
     */
    @TableField(value = "classify_id")
    private Long classifyId;
    private String classifyName;

    /**
     * 社区ID
     */
    @TableField(value = "community_id")
    private Long communityId;
    private String communityName;

    /**
     * 消耗积分数
     */
    @TableField(value = "exchange_num")
    private Integer exchangeNum;

    /**
     * 0:不限制,1:限制
     */
    @TableField(value = "stock_type")
    private Integer stockType;

    /**
     * 库存数
     */
    @TableField(value = "stock")
    private Integer stock;

    /**
     * 已兑换
     */
    @TableField(value = "has_exchange")
    private Integer hasExchange;

    /**
     * 已领取
     */
    @TableField(value = "has_received")
    private Integer hasReceived;

    /**
     * 待领取
     */
    @TableField(value = "to_received")
    private Integer toReceived;

    /**
     * 有效期开始时间
     */
    @TableField(value = "start_time")
    private LocalDateTime startTime;

    /**
     * 有效期结束时间
     */
    @TableField(value = "end_time")
    private LocalDateTime endTime;

    /**
     * 物资统一发放地址
     */
    @TableField(value = "exchange_address")
    private String exchangeAddress;

    /**
     * 物资预计统一发放时间
     */
    @TableField(value = "exchange_start_time")
    private LocalDateTime exchangeStartTime;

    /**
     * 物资预计统一发放时间
     */
    @TableField(value = "exchange_end_time")
    private LocalDateTime exchangeEndTime;

    /**
     * 商品简介
     */
    @TableField(value = "descibe")
    private String descibe;

    /**
     * 图片地址
     */
    @TableField(value = "img_url")
    private String imgUrl;

    /**
     * 上下架（0代表上架 1代表下架）
     */
    @TableField(value = "status")
    private String status;

    /**
     * 上下架（0:待审核 1:已审核）
     */
    @TableField(value = "audit")
    private String audit;

}